Added regex and state machine

Only good data makes it thru,  parse into dictionary.  Uses state
machine to determine writing start and stop lines.  Data at point of
storing in database