Complete implementation of cos mutation. Tidy up interface.clj.