Fixed '/' and '<' operators, added comments and some refactoring.