Now writes correct values into the Feature table
refactoring, renamed some variables, reactivated ID features