More work on the core file. Changes to how passing of data to views works. Still need to comment the core file and write docs.