added comments and cache class for running processes