added the readme
refactored the reload function