added search fxn and initial ability to create Subs