Add --reload option for code reloading

Fix #526