Added instructions to README; minor code tweaks