Slight refactoring
Added paremeter 'handle_params'; removed method autocork(); slight refactoring and cosmetic changes