added external adapter trimming functionality, better versioning, makefile fix, more examples