Added locref view
Added support for meta fields in views; improved error checking for command line