Add missing copyright text to acrepo
Changes to stop crash from occurring when accessing non root item in tree

When viewing files in the commits tree if the file was a directory then
it would crash. This was fixed by checking if the model had children from
that index.

Fix up some comments.