Cleaned up startup, hardening base objects. Added logging. Fixed minor bugs.