Indention fixed.
Added model functions and fixed indention.