Successful Implementation of Models

also fixed bugs