more code documenting and fixed a bug with glow