added timer functionality and fps counter