The last changes, added comments to all the methods, and some changes in the code.

Added comments for javadoc, removed the code that did not belong to the
method toString.