Fixed all errors

Also started working on a trade base for examples for others and also
started working on the trading system. (Should be done today.)