Added a lot of core code

Basically the core application
added butterfly pic