Fixed bug that was causing the same library to imported multiple times. Fixed another bug that caused the command after the first to be added outside of the main function