added some comments and added the send file command. May need tweaking