small fixes and updates, uses curInput.txt as input now