1- Yes that’s permissible. It’s called Tawriya, which means you technically don’t lie. You say the truth but your family will understand something else (like the library example you mentioned).
2- Yes this is also permissible. Just pray Nafilah prayers without making the intention of Jama’a.