Working Import Function

Import function now works. Added comments to the function to explain how
that works. Began work on export function.