Fix building errors, better comments and add readme and license