Start adding tests and documentation to Riley