added ostream operators, everything compiles. server not done