Fixed #3, Fixed #4: corrected readNextLine to skip returns