Moved rep-changing commands into a new file

This is an attempt at cleaning up and reorganizing