added model examples and reformatted code