Added HTML auto close, and fixed some installation issues