input

the input file now seems to work correctly and so should be just about
ready to incorporate into alg1, it may be worth doing some more testing
for some of the more unusual possible inputs though.