Merge pull request #6 from jurop32/master
Check whether history is defined before using it
Allow files to be uploaded