updated
Added inline documentation