Added comments, fixed code, bumped to v1