Cleaned up the code a bit and added explanation of project.

I used Int32 type some places but that just turned out to be annoying to use since integer literals in Julia are of type Int64.

Also added more detailed explanation of what the code is really for.