remove unused methods, add comments/doc