ability to specify a parent to limit the reach of selected

When you do $(element).selected(parent). you can pass in a parent to limit the scope of selected's reach in case you have two different sections with the same class names.

looks like a lot was changed because changed tabs to white spaces. i commented on specific lines where changes happened.