Redid server parsing and added pseudocode in swp.h