Added and fixed upload.
Improved responses
Removed unneeded newline
Cosmetics, improve readability and remove bugs.
Merge pull request #8 from RWOverdijk/feature/uploads

Added and fixed upload.