removed debug logging, added some docs