implemented dyn f sync; cleanup
Merge pull request #2 from cyclon1978/fsync

implemented dyn f sync; cleanup