Added compliance with Java 6

also added config reloading