reorganization of the demo code. fixed some pointer issues, cleaned up naming convention of person struct instances to use 'this'.