Views fix

Added ability to create NestedView and code around it. Plus some reformatting of the error messages and more unit tests.