Added obj-to-json, cleaned up comments.
Made handleTimeOut a discovery method.