Periodic conditions were added. To switch between periodic and rigid walls conditions one has to define macros __RIGID__ or __PERIODIC__