unminify plugin code
reorganise contents
make comments pretty