Removed debug info and added documentation.