commented code and expanded readme