added distribution income feature. general code refactoring.