fixed warnings about missing format in fprintf
added CR to end of stdout when printing password