Updated documentation
Added a sample program