Wrote wshd main function - finishing wshd for now