Replace scanf input with fgets (C), fixes #12