Merge pull request #9 from snickers2029/develop

fixed bug and added comments
quick fix