implemented CmdCreateSlopedSlab and cleaned up a bit