Changed directory structure and added support for autotools