Added debug and intialization tools.

Also commented out unimplemented library stuff.