Reordered the code base and added some comments
Added back nnnick's samples