Started a print function, moved shelvefile creation

hipat_control now creates the shelvefile. Also started work on the
output from the functions.