Cleaned up code and added newly brox_flow.cpp