Massive update

Added logging, and standalone executable building.  And fixed some
things.  Formatting updates.