Added some documentation, updated rules.