added extract function (currently not working properly)
bugg extract function in teashell
Bug fixes given shell idea
Bug fixes