Visu acalc port code cleanup

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>