cleaning up and improving code
cleaning up and improving code
added lots of code
added a new helper function: loadPartial