Fixed more bugs relating to writing CD records, modified the design API to use nsfdata classes, and removed the old design.cd classes