added # comments to .conf and error control