Read from stdout instead of stdin

Changed derped STD_INPUT_HANDLE to STD_OUTPUT_HANDLE
Update .gitignore