Cleaned up and commented code + create folder

Cleaned up and commented doPost for image upload.

I also now create the "images" directory if needed.