added spec and lib files, updated README