Add some features

Add replace function
Add distinctvalues
Taking care of tables in export (csv or print)