Added ops command and minor fixes and improvements