generalising command characters

removing magic numbers