Updated library.jar
Many tweaks and small bug fixes