fixed received contenet size was zero
remove testing code and update example