Fix bug on stories, add documentation and other minor fixes