added typecasting to "read" to fix warnings
added comments and necessary includes to API and FileReader files
moved file opening to FileReader