Fixed a small src bug and added a NOTICE copyright check