updated syntax necessities
added new code to check first three lines
first three line scan works
finished topology functionality
commented out main from top
changes to syntax and main
modified main
fixed some code
modified main slightly
added some code for debugging
attemps at fix
minor changes
minor attempts to fix hang