updated javadocs, added logging, also logging can be toggled. dispose methods added to state and rootframework for disposing textures and other things at close