adding documentation for threshold
fleshing out qsc standard function types
added persistence test and cleaned docs
adding stat_window functions
doc for new methods
fixed syntax