restructured keyspace initialization & testing

so that it can be expanding for different numbers of motors and gangs