Docstring position

Docstring has to be on the top of the script to work. There was also one redundant print which was outputing "None" to stdout.