Overall documentation, cleanup, structure fixes