Added gradle, docs and code