Fixed bug

file extension was not being added to file name in th directory
Fixed style issues in different browsers