added function documentation and animation