Added line detection in loading from files. Testing functionality of code in main.cpp.