removed unneeded code
added interactive session (parallel doesn't work there), and removed several bugs