Added functions and started styleguide.php template