Added rand and optimal control examples. Applied quick fix on the observers.