added block folding and commenting to editor