Added NOTICE.txt, cleaned code up to make it more readable, added some c...

...omments/doc