Added features.js
Future error handling adjustments