Added documentation. Tweaked file upload functioanlity (still needs work)