Added test for reloading and more documentation.