moving main file to /lib folder
added upload function to main function so you can use PUT to upload files too
updated readme
wrote tests ;-)