Added more documentation to the code, updated libGDX library to the latest nightly.