Fix visual bug with active line and folding lines
Added more comments