added -a option. now users can specify a comma separated list of attributes to display