Formatted code with NetBeans formatter.
Enforced most strict access privileges on all methods.
Added documentation for variables.