Added source and updated documentation