Making standard comments in all functions.
Updated most funcions to receive separate w0 and w1 tables
instead of the original idea of only one matrix with w0 and w1
columns appended.

Signed-off-by: Renato Stoffalette Joao <renatosjoao@gmail.com>