Changed trash() methiod

Changes in trash method and moved constructor code into startSession() method.