changed some java class and added git ignore file