cleanup and docs.
refactoring and docs.
alpha chanel support added, but a bit buggy. need to add some units tests to sort it out.
missaing ) dure to fat fingers.