5th commit;
added documentation and made some methods private