removed unnecessary clone and added some more debugging outputs
#1: merged development branch into implicit flow branch
#2: some performance improvements for implicit flows
#2: added some more test cases for implicit flows