Most of the code is just one huge method. Refactoring into a "ParseLine" method (and potentially other smaller methods) will make it more readable