Improved validator a bit more
Added macro system allowing custom static methods to be defined
Add tons more global functions
Added macro tests