Updated main.c to initialize hub. Updated to most recent libraries.