fix repository_id type
fix library

add removeRepository method
fix getRepository method
update defaults