added error response and moved core files to their own dir
moved test files to match core