Changed _is_integer to _is_validnum. Thanks to Terrence Brown <terrence@terrencebrown.com> for this modification
Changed faulty behaviour of numeric parameters to the new method. They where treating a value of 0 as false, and using the default value. Thanks to Terrence Brown <terrence@terrencebrown.com> for this modification
Changed all tags and attributes to print in lowercase. Thanks to Terrence Brown <terrence@terrencebrown.com> for this modification
All attribute values are now surounded by quotes. Thanks to Terrence Brown <terrence@terrencebrown.com> for this modification