sprintf v.1.00

Almost completely rewritten