RMG version 1 complete with tests