- cleaned up code, added comments and changed all comments to English