Documentation and build system updates

Updated documentation
Fixed gradle publish to local maven repository and other issues.