Added allowed file extensions

Extensions: 'pdf', 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'pps',
'ppsx', 'zip'.
(alphabetical) reordering locale items
Code cleanups

Declaration of variables
Optimization