fixing hint errors and adding some documentation