modified controller

added comments for getall