Added better error handling and pre and post middleware loading
Release 0.2.0