fixed tons of typos after making huge im jm changes, current code runs until threshold and then crashes.