added 'q'-option, fixed deleting figures
added q option
caught errors when q is supplied, minor fixes
extended documentation
cleanup for merge with master