More clean up of controller code, fixes of syntax regarding batch change spreadsheets
Created asDict function for models