Added procedure GenerateView

Fixed a few typos.
Added the file with procedure that generates the static views from the
system dictionaries table and the example usage.