The basic structure is now working, test data is requested in main() but some bugs still reside