fixed wrong imports
added batchTime as a parameter in generation
added jpathwatch library for unix watchservice
minor addition to directory monitoring