added .gitignores; Kaba: refactored, added java handler