Added apache copyright header to all java files