Updated return type of some functions.
Started to implement send and receive methods.
Made the class static.