Refactor: introduce qa-tools and fix code to comply