Initial commit of main code.