solved export bug, added export log functionality