Fixed some issues with constructing null pointers.
Scripts now use unique pointers from the utils library.
Added additional comments for doxygen.
Added more built-in function types to prepare for production version.