Fixed bug in writing glazing + modify the code

File path naming convention is now similar to other HB components.
@chriswmackey try this version. I also made some changes to
readEPResults hoping it will read the results but apparently the
structure of iso files doesn't match.
@chiensiTB FYI. The changes are minor but make the process cleaner.