Improved args parsing, added some version handling and added experimental animation capture code