Added entrance and exit windows to ion chamber.  Corrected bug in layer position determination.