Changed access level for properties from private to protected to allow for easier testing and fixed issue #6.