Added comments to explain singleton class better.