added model class to allow binding silex app, refactored a bunch
updated README