More implementation

*Extend is complete. To be tested for bugs.
*Fixed some minor general typecasting bugs.
*Added some (mostly extend-related) message classes.