Application is working correctly. Cleaned up whitespaces in code and added English comments.