Rebuilt the source tree and separated the project into three libs and one standalone main file. Upated most of the files. Added triggers.