Feature/build

Complete rewrite of the analyze process.