added automatic detection of source files in dir
removed begin and end modification
only one modification starts at beginning and end when finished