Added code to theLandOfMisfit Code

Moved code from import.php to thelandofmisfitcode to allow easier
editing and source readability.