Added checking for file permissions.
Added search/highlight functionality!