Removed connect dependency in favour of send
updated documentation with some code cleanup