Made library java 1.6 compatible
Added listener functions to Player