Removed useless comments, inserted test and example