Core pr 3

* Added panels wrapper to handle profile2.
* Clean up of the code.
* Updated make file.