Changed the building restrictions.

Implemented the building restrictions
TODO now supported in the motd
Code cleanup