Make project use Java 1.6
Fix up Main to take args and dispatch properly