Replaced all pritnf with console print functions. Updated to newest libraries.