Fixed bugs and added methods
"Upload" method added to media class

Copied an example of upload class from a website and added it to the
project