Added core files

Core files, including demo.