added import/export functionality, as well as some style changes