added import option to GUI

required several small changes to data structs manipulation