Javadocs were added. Some small changes (public/private modificators and
and some paramethers).