edit todos
refactor and fix feature type parsing
tackling #20, introduce callback function.