Spark functions and actions added

Added spark function and actions. this will eventually allow buttons to
be added and removed from the system