move line drawing to input draw
chhange for loop notation
fix bug from change in for loop
change width of svg
add functions for finding co-ord of i/o and add call for output draw function
add draw iteration too ensure it doesn't loop infinitely