change namespace. use 'using' for idisposables
parameterize functions and add using statements