removing unwanted glogs
refactoring code
changed glogs to be consistent
pulled out send/receive data into a method