Added more states to parts of the client STD and added pseudocode for client STDs

Aaron (or anyone else), if you can please review the pseudocode and
adjust as needed