fix typo, added comments to docker reg script

Change-Id: I98e24a38c574286484edac6ceb2796b1c74f7f28