Changed some comments and reviewed the code.
Reported another bug to the readme file.
Fixing comments, improving code readability, bug fixes.