Auto Libraries, Code Cleanup, Fix Java Detection