Updated readme and added inline docs