added animation and some debugging features