Super cleanup of makefile and directory structure. Sources, objects, and libraries are kept in their own folders. Also fixed makefile to correctly update lib and example when a header file is changed.