Added inline comments for documentation