Fixing Bugs

Basically, the entire system failed to work at all upon first
compilation. These are attempts at fixing it.