v0.1.16 - reorganization

removed non-working ghost, reorganize code into functions, code cleanup,
track/kill entities by reference.