Remove extra empty lines in scan.cpp
Fix commits in functions.h
Fix Issue 4: Socket::Read return false when read return 0