Adds comments, still broken algorithm