added a main method to call the fast flow algorithm. does minimal option checking
complete scaffolding of code in place