HUGE REFACTOR. Refactored all energy sources and data classes, big changes in database.