Migrated sources from Dekus repository + full refactoring