Added javadocs and slight refactoring to PersonGateway and added a test
to PersonGatewayTest and also added javadocs and slight refactoring to
reduce warnings and improve test coverage.