Brought in IO code

manually merged in code for getting starting and ending address from
user