added some documentation here and there..