Updated Source Code

Fixed bugs when downloading through HTML