added the eclipse configuration file for scala projects
several refactorings to make the code more readable