added gitignore
added automatic rewrite flush, updated readmes