LoadDB mode now works. Added a new calc_morans mode (under development). Fixed a few bugs related to variable names.