Added serial reference implementation
* Added script for generating animations
* Fixed serial implementation