Model detection implemented

Also updated documentation.