Included Java in spark module and fixed some erratas