Fixed #1, new error management system, many bugfixes, new upgrading system