added Random Start Phase flag.  Made option code reading segments deal with longer codes