added main method (demo); fixed formatting typo