Added example messages for api docs, removed deprecated methods
Signed-off-by: Alessandro Tundo <alessandrotundo94@gmail.com>