Sorted files and documented more code