Insert function now supports .parent

Included .parent into the include function. also did some various syntax
fixes through the file.