Added documentation to the file.

Without comments, going through this file is slightly hard for an amateur python programmer!
Merge pull request #4 from IcyFlame/patch-1

Added documentation to the file.