Added import script. #712
Small bugfixed in export script.