remove duplication, extra files, add codeclimate