update readme and refactor controller proc