Fix issue3 and other bugs.

Switch java.util.Timer out for ScheduledExecutorService which prevents c...

Fix issues with auto-wiring beans together in spring method.