fixed some Java warnings
added usage help