code cleanup, renamed method s to start, fixed randomness issues