Made head pointer private, changed node creation