Documentaion, script comments and more cleanup