updated readme, extracted resource loading for reuse