2014.10.09.1610 : fixed reference position restraints problem in bilayer.py by adding flag