Use constants more often. Cleanup comments and add more to explain how things work.
Attach a file by drag & drop or click to upload