S-box and constructor seem to be working, although all values must be tested.
Added some documentation
updated some functions