initial commit with code as of thesis delivery.