Added ability to list multiple directories. Added more comments.