Initial import of Arya codebase; cleaned up and documented for publication