clean up student file generation, read from stdin
Merge pull request #1 from tzwenn/patch-1

clean up student file generation, read from stdin, thanks sven!