Added error handling, better argument order to moving_data script