Adding missing doc block and removing dead code