Remove unused code and update docs.
Add Maven publish script.