made script cluster-runnable

TODO:
work on speeding up slow while() loops
streamline cluster submissions by editing if __main__ statement