All samples builds and runs now

* Renamed "intparam" to "sysparam"
* Rename "param" to "funparam"
Minor changes