First commit

All files into here. Removed study data, experiment handling functions
and demo mode.