Added NewModel + fixes

Added NewModel procedure and fixed NewClient procedure