updated src code and README