refresh function added, documentation updated