added gitignore
fixed head creation

added createNode to node class