Changed startup routine to read integers from STDIN, added decreasing secondary run of program