A LOT of changes but still not finished.

Better package managing.
Removed a lot of warnings. Refactored all classes.
Closer to the final verion but shortestpathsearch and calculations still not fine.