added codeclimate badge
sorted issue with unused var
removed unused vars