Refactoring and javadocs. Resources are downloaded from the online repository and imported to the project.
Elements are now fetched in the local cache before trying to download them when importing.
Added javadocs.