Update MouseClickerjava

Added contracts and cleaned up style