Start to remove unused code

Remove bits of code introduced to assist in learning ionic and angularJS