Implemented sorting for Name and Modified columns.
Many refactorings throughout.