Added method getSubscriptions and integrated with other methods

Ok, sorry about last pull request, I definitely did something wrong. this is the good commit