Added SmartMarkup.php in lib/ directory; Specifications cn be found in
comments inside the file.