changes main.controller vars to $scope
Merge pull request #118 from biversen21/develop

changes main.controller vars to $scope