Remove scanf use
Merge pull request #33 from dsheets/pct-bug

Remove scanf use