JSON error checking added and app view added back to repo.