Moved attributes and methods to private.
Commenting resources module and changed some method names.