Included the 'demo' function. Also fixed some documentation bugs.