Refactoring code base

1) adding exception layer 2) adding service layer that connects with
google api