Tried to remove the cocoapods and messed up the project somehow. Fixed. Will come back to this when more awake. Also reordered functions to make more sense.