refactoring
added classes for record/replay and progress bar
removed nbdiv and translation nfrom layer interface (first isn't needed
anymore, second is a global)