Buffer improvements + added array / math tool functions