lots of bug fixes, added attr/atr querying + fixed count logic, added support for external conf, file tests, engine test etc