Switched to use atomic_ instead of atom_ for better compiler compatibility (Issue #45). Also added check for user-set input size.