Cleaned branch. update tutorials and complete source code documentation