Removed test code that isnt used to clean up example
Further cleaned up code to write basic example