Extracted some print statements to a debug method

Made printList() public

Added a default printList() that will print the current list.
Cleaned up the code and added new print method
Added the IntelliJ project file.