Commit 3

Fixed bug with model loading.
Added detect.cpp
Implemented modelcomponents function.