added more tests for new resize method
updated readme on new resize method
added legacy resizing method
psr fixes