added javadoc for fitting constant
added back in libgdx support, along with other minor changes