Cleaned up the code

Added missing comment

Changed items from public to proteted

Fixed copyright dates

Changed function printVar from private to protected