Added debug logs, fixed some minor bugs, updated to gradle 0.10.0