Added context parameter

… and some cosmetics $modx->getOption for parameters