improved macro example for more precise results; began html documentations