Removed not used struct props
Added -Wall to compiler flags
Reorganized module globals
Bug fixes + documentation