Added main function, for testing.
added more test code
Fixed pushback and pushfront to work with empty linked lists