Added some checks in skarf.js and other edits
[ADD] added some function argument validity checks
[CHG] more proper interaction between subclasses and superclasses
[CHG] renamed some property names for clarity