made insert smarter
added argument select for function select
refactored dumps
udpated doc