Large refactoring of the code, centered around the database structure. Temporarily removed internet downloading.