Fixed a few PHP notices (thanks @mpeshev). Importing calculation fields should now work properly. Closes #74