various things

rewrote and extended api, removed article objects, added error handling