Added some convinience methods and functions. Also implemented indexing
Added an example of indexing