See the samples directory and the drawstate.pl script for details on how to format input and what to expect for output.