Initial commit of version ii of the code.