cleaned up webrobot API and added comments