added and fixed bugs with the sample Actions and Functions