initial full virgin code

Unedited from source