Fixed line break error for input and extern failure

Extern was causing a linking error with c c++. I placed this call
in main.cpp to remove the error. I also fixed the weird line breaks
occuring with quash input. I'm awesome.