Import to Eclipse

Updated project for being loadable in Eclipse
Downgraded to Java 1.6
Fixed some warnings
Fixed distances calculation