add codeclimate, fix factories