removed unused codes
updated code with phpdocs
renamed callback to execute for routes