add option to timestamp filename
move increment and timestamp to separate functions
minor formatting