Fixed variables & should have fixed /cwsstart

Fixed a few variables by making them global. Also I should have fixed
/cwsstart, at least to let the command at least execute.