removed accidentally added command.
changed the value of N
underscore unused variable.
Lots of fixes to allow for local running