Added exportAll feature, and an error handling message when an unknown
object is trying to be exported.