Rewrite the gem

1. Add getLangs method
2. Make code pretty