add ignore for .metadata
refactor for eclipse-based development