Updated SQL for MySQL to work properly
Updated SQL for Oracle to work properly
Update javadocs
Update javadocs and some minor code tweaks.