Added the API for handling of proprietary messages.
Performed restructurisation of API to include ability of composition of proprietary and query sentences.