Fixed the ints. Underscores aren't welcome around these parts...
Added a saveFrame function for outputting frames.