Fix "Source" method bug, remove warnings, update demo file.