boundary conditions moved to rule classes
removed useless code
system diagram updated