Added file listing code
Improved documentation
Added ability to list files
Improved handling of user arguments