Add get_hostgroup function.
Add get_history function.
exclude .swp and .swo.
Add get_history example.