Refactoring and bugfix in function minimisation
Improved function minimisation, fix zero functions
Extracted functions im separate model
Implemented VHDL code generation from minimized function