Initial commit of code based on Miranda/Aleph