Refactoring functionality + dynamic sampling + bug fixes

Also readme + screenshots