updated with argument to specify file to commit