Cleaned up java and implemented SensorProcess methods.