Started controller functionality and added ability to load json from file