Change directory structure to separate library from example (stage 1)