Document root paths for distros
Strip trailing whitespace
Move __main__ block to end of file (Otherwise throws undefined function errors)