Updated and wrote some new documentation