Added getMerged. Cleanup code. Add some thougts about models.