Add Constructor code to Patomic and PatomicShell