added command line args for computer control
made functions private/public