Committing version 1.2.1

Added new features and fixed error created by anonymous function.