Fixing some silly errors and adding all of the object exports to the main function