Added warning in constructor and documentation