Added example, fixed bugs, shortened compile script and various other cleanup changes
Quick comment added