small code cleaning and documents

Have not tested anything yet really should.. ;{P