Add valadoc style comments
Remove unnessacary cast. Comment cleanup